﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucNoidung.ascx.cs" Inherits="Admin_ucControl_ucNoidung" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tr valign="top">
        <td>
            <table border="0" cellpadding="0" cellspacing="0" id="id-form" width="500px">
                <tr>
                    <th style="width: 100px">
                        Ngôn ngữ
                    </th>
                    <td>
                        <asp:DropDownList ID="drlang" runat="server">
                            <asp:ListItem Value="1" Text="VietNames"></asp:ListItem>
                            <asp:ListItem Value="2" Text="English"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                        Nội dung
                    </th>
                    <td>
                        <cc1:Editor ID="edNoidung" runat="server" />
                    </td>
                </tr>
                <tr>
                    <th>
                        Menu 
                    </th>
                    <td>
                        <asp:DropDownList ID="drMenu" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <th>
                    </th>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" Text="Lưu" OnClick="btnLuu_Click" />
                    </td>
                </tr>
            </table>
            <!-- end id-form  -->
        </td>
        <td>
            <asp:FileUpload ID="fileUpload" runat="server" Width="220px" />
            <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" />
            <asp:GridView ID="grdImgItems" runat="server" AutoGenerateColumns="False" Width="500px"
                EmptyDataText="No images found" OnRowDataBound="grdImgItems_RowDataBound">
                <Columns>
                    <asp:ImageField HeaderText="Hình" DataImageUrlField="ImageURL" DataImageUrlFormatString="~/Admin/Images/Items/{0}">
                        <ControlStyle Height="80px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:ImageField>
                    <asp:TemplateField HeaderText="Mặc định">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkDefault" runat="server" Enabled="false" />&nbsp;
                            <asp:ImageButton ID="btnDefault" runat="server" ImageUrl="~/Admin/images/table/btnDefault.jpg" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <ItemTemplate>
                            <asp:ImageButton ID="btnDelImg" runat="server" CausesValidation="false" CommandName="delete"
                                CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Admin/images/table/del.gif" OnClick="btnDelImg_Click" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    Không có hình ảnh được tìm thấy
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="Tan" Height="30px" Font-Bold="True" />
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            <img src="images/shared/blank.gif" width="695" height="1" alt="blank" />
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
</table>
